<template>
	<view class="content fofa poRel">
		<tabnav title="我的企业联系人" :col="back"></tabnav>
		<view style="height: 40rpx;"></view>
		<view class="wid90 mar bacFFF borRad20 box1" style="padding: 10rpx 0;">
			<view class="wid90 mar">
				<view style="height: 20rpx;"></view>
				<view class="foSi25" style="color: #6E6E6E;">企业名称</view>
				<view class="hei80 dis disAl disJuB foSi30">
					<input class="wid100" v-model="firmName" placeholder="请补充工商执照上的企业名称"/>
				</view>
			</view>
				<view class="xia"></view>
			<view class="wid90 mar">
				<view style="height: 20rpx;"></view>
				<view class="foSi25" style="color: #6E6E6E;">姓名</view>
				<view class="hei80 dis disAl disJuB foSi30">
					<input class="wid100" v-model="name" placeholder="请输入姓名"/>
				</view>
			</view>
				<view class="xia"></view>
			<view class="wid90 mar">
				<view style="height: 20rpx;"></view>
				<view class="foSi25" style="color: #6E6E6E;">手机号</view>
				<view class="hei80 dis disAl disJuB foSi30">
					<input class="wid100" v-model="tel" placeholder="请输入手机号"/>
				</view>
			</view>
		</view>
		<view class="wid100 poAbs bacFFF dis disAl disJuC" style="height: 125rpx;bottom: 0;">
			<view class="hei80 dis disAl disJuC coFFF borRad10" @click="baocun"
				style="width: 400rpx;" :style="{'background-color':back}">确认并保存</view>
		</view>
	</view>
</template>

<script>
	import tabnav from "../common/tabnav/tabnav.vue"
	export default {
		components: {
			tabnav,
		},
		data() {
			return {
				back: uni.getStorageSync('back'),
				firmName: '',
				name: '',
				tel: ''
			}
		},
		onLoad() {

		},
		methods: {
			baocun(){
				if(!this.firmName){
					uni.showToast({
						title: '请输入企业名称',
						icon: 'error'
					})
					return
				}
				if(!this.name){
					uni.showToast({
						title: '请输入姓名',
						icon: 'error'
					})
					return
				}
				if(!this.name){
					uni.showToast({
						title: '请输入手机号',
						icon: 'error'
					})
					return
				}
				uni.navigateBack({delta: 1})
			},
			tiaozhuan(url){
				uni.redirectTo({
					url: url
				});
			},
		}
	}
</script>

<style>
	.content {
		height: 100vh;
		background-color: #F4F3F3;
	}
	.foSi28{
		font-size: 28rpx;
	}
	.xia{
		height: 1rpx;
		background: #BBBBBB;
	}
</style>
